﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace GGGK.Film.IService
{
    public interface IBaseService<T> where T : class,new()
    {
        bool Add(T t);
        bool Update(T t);
        bool Delete(T t);
        T? Get(Expression<Func<T, bool>> whereLambda);
        IQueryable<T> Query(Expression<Func<T, bool>> whereLambda);
        bool SaveChanges();
    }
}
